package cn.nawang.ebeim.api.service;

import cn.nawang.ebeim.api.domain.BackStrategy;

/**
 * @ClassName: BackStrategyService
 * @Description: TODO
 * @author fanyb
 * @date Aug 24, 2015 5:18:43 PM
 * @version v1.0
 */
public interface BackStrategyService {
  
  /**
   * 
   * @author fanyb
   * @Description: 根据数据源编号获取备份策略
   * @param datasourceId 数据源编号
   * @return BackStrategy 存储策略
   * @date Aug 24, 20155:19:42 PM
   *
   * @修改人 
   * @修改日期
   */
  public BackStrategy getBackStrategy(String datasourceId);
  
  public BackStrategy findOne(String id);
  
  public boolean save(BackStrategy backStrategy);
  
  /**
   * 
   * @author fanyb
   * @Description: 更新备份策略
   * @param backStrategy 备份策略对象
   * @return boolean 
   * @date Aug 27, 201510:28:26 AM
   *
   * @修改人 
   * @修改日期
   */
  public boolean updateBackStrategy(BackStrategy backStrategy);
  
  public boolean delete(BackStrategy backStrategy);
}
